package com.groupware.cal.dao;

import java.util.List;

import org.springframework.stereotype.Component;

import com.groupware.cal.mybatis.CalManager;
import com.groupware.cal.vo.CalVo;

@Component
public class CalDaoImpl {
	public List<CalVo> getCal(String userId){
		List<CalVo> sc= CalManager.getCal(userId);
		return sc;
	}
	public void insertCal(CalVo vo){
		CalManager.insertCal(vo);
	}
	public void updateCal(CalVo vo){
		CalManager.updateCal(vo);
	}
	public CalVo getUpdateCal(String title){
		CalVo sc= CalManager.getUpdateCal(title);
		return sc;
	}
	public void deleteCal(CalVo vo){
		CalManager.deleteCal(vo);
	}

}
